"use strict";
/// <reference types="../../../../../node_modules/.vue-global-types/vue_3.5_false.d.ts" />
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
// 视频播放组件
require("vue3-video-play/dist/style.css");
var vue3_video_play_1 = require("vue3-video-play");
var vue_1 = require("vue");
//事件示例
var props = defineProps({
    filePath: {
        type: String,
        required: true,
        default: '',
    },
});
var onPlay = function () {
    // console.log('播放')
};
//播放器
var options = (0, vue_1.reactive)({
    width: '100%', //播放器高度
    height: '100%', //播放器高度
    color: '#409eff', //主题色
    title: '', //视频名称
    webFullScreen: false, //网页全屏
    speed: true, //是否支持快进快退
    currentTime: 0, //跳转到固定播放时间(s)
    muted: false, //静音
    autoPlay: true, //自动播放
    loop: false, //循环播放
    mirror: false, //镜像画面
    control: true, //是否显示控制器
    ligthOff: false, //关灯模式
    volume: 0.3, //默认音量0-1
    src: props.filePath,
    poster: '', //封面
    speedRate: [1.0, 1.25, 1.5, 2.0], // 可选的播放速度
    controlBtns: [
        'audioTrack', //音轨切换按钮
        'quality', //视频质量切换按钮
        'speedRate', //速率切换按钮
        'volume', //音量
        'setting', //设置
        'pip', //画中画按钮
        'pageFullScreen', //网页全屏按钮
        'fullScreen', //全屏按钮
    ], //显示所有按钮,
}); /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
    var __VLS_ctx = {};
    var __VLS_components;
    var __VLS_directives;
    // CSS variable injection 
    // CSS variable injection end 
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
    var __VLS_0 = {}.videoPlay;
    /** @type { [typeof __VLS_components.VideoPlay, typeof __VLS_components.videoPlay, ] } */ ;
    // @ts-ignore
    var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign(__assign({ 'onPlay': {} }, { ref: ("aplayVideo") }), (__VLS_ctx.options))));
    var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign(__assign({ 'onPlay': {} }, { ref: ("aplayVideo") }), (__VLS_ctx.options))], __VLS_functionalComponentArgsRest(__VLS_1), false));
    // @ts-ignore navigation for `const aplayVideo = ref()`
    /** @type { typeof __VLS_ctx.aplayVideo } */ ;
    var __VLS_6 = {};
    var __VLS_7;
    var __VLS_8 = {
        onPlay: (__VLS_ctx.onPlay)
    };
    var __VLS_3;
    var __VLS_4;
    var __VLS_5;
    var __VLS_slots;
    var $slots;
    var __VLS_inheritedAttrs;
    var $attrs;
    var __VLS_refs = {
        'aplayVideo': __VLS_6,
    };
    var $refs;
    var $el;
    return {
        attrs: {},
        slots: __VLS_slots,
        refs: $refs,
        rootEl: $el,
    };
}
;
var __VLS_self = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({
    setup: function () {
        return {
            videoPlay: vue3_video_play_1.videoPlay,
            onPlay: onPlay,
            options: options,
        };
    },
    props: {
        filePath: {
            type: String,
            required: true,
            default: '',
        },
    },
});
exports.default = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({
    setup: function () {
        return {};
    },
    props: {
        filePath: {
            type: String,
            required: true,
            default: '',
        },
    },
    __typeRefs: {},
    __typeEl: {},
});
; /* PartiallyEnd: #4569/main.vue */
